﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Left.aspx.cs" Inherits="Credit_Teacher_ScoreInput_Left" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
        <link href="../../Common/css/main.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        
        /**
            导航个人查询
        */
        function leftNav(obj, nav) {
            removeActiveStyle();
            obj.parentNode.className = "active";
            var liList = document.getElementById("detailLi");
            liList.style.display = "none";
            
             //获取historyId
            var id = obj.id;
            var evalType = obj.evaltype; 
            var attribute = obj.attribute;
            var status = Number(obj.status);
            
            if(status == 0){
                parent.frames["mainFrame"].location.href = "msgPage.html";
                return;
            }
            
            //1:评学生 2:评班级 3:评老师
            switch(Number(evalType)) {
                case 1:
                    parent.frames["mainFrame"].location.href = "Overview.aspx?id="+id+"&evaltype="+evalType+"&attribute="+attribute; 
                    break;
                case 2:
                    parent.frames["mainFrame"].location.href = "Overview.aspx?id="+id+"&evaltype="+evalType+"&attribute="+attribute;
                    break;
                case 3:
                    parent.frames["mainFrame"].location.href = "TeacherOverview.aspx?id="+id+"&evaltype="+evalType+"&attribute="+attribute;
                    break;
                case 4:
                    //parent.frames["mainFrame"].location.href = "../../../Moral/Teacher/ScoreInput/Overview.aspx?id=" + id + "&evaltype=" + 1 + "&attribute=" + attribute;
                    parent.frames["mainFrame"].location.href = "../../../Moral/Teacher/ScoreInput/OverviewEx.aspx?id=" + id + "&evaltype=" + 1 + "&attribute=" + attribute;
                    break;
            }
        }
                
        /**
            移除active样式
        */
        function removeActiveStyle() {
            var liList = document.getElementsByTagName("li");
            for (var i=0; i<liList.length; i++) {
                liList[i].className = "";
            }
        }
    </script>
</head>
<body>
    <div class="leftWarp">
        <div class="menuBody">
            <div class="menuList">
                <dl>
                    <h2>
                        学分录入</h2>
                    <ul>
                        <dd id="dd">
                             
                             <%--<li class=""><a href="#" onclick="leftNav(this, 1)">&nbsp;&nbsp;&nbsp;&nbsp;学分管理优秀班级</a></li>
                             <li class=""><a href="#" onclick="leftNav(this, 2)">&nbsp;&nbsp;&nbsp;&nbsp;优秀教师评测</a></li>
                            <li id="detailLi" style="display: none;"><a href="#">&nbsp;&nbsp;&nbsp;&nbsp;学分录入</a></li> --%>
                        </dd>
                    </ul>
                </dl>
            </div>
        </div>
    </div>
</body>
</html>
<script type="text/javascript">
<%

    SetNavigate();

 %>
</script>